package com.henu.engineer.dao.mapper.cultivatingproject

import com.henu.engineer.dao.entity.cultivatingproject.CourseSys
import org.apache.ibatis.annotations.Mapper
import org.springframework.stereotype.Repository

/**
 *
 * @author noexcept
 * @since 2021/8/10 16:14
 */
@Mapper
@Repository
interface CourseSysMapper {

    // TODO: 2021/8/10 编写对应的Mapper文件

    fun insertSingle(courseSys: CourseSys): Boolean

    fun insertList(courseSyses: List<CourseSys>): Int

    fun deleteSingleById(id: String): Boolean

    fun updateSingle(courseSys: CourseSys): Boolean

    fun selectAllCourseSys(): List<CourseSys>

    fun selectCourseSysById(id: String): CourseSys
}